class Tool:
    #使用赋值语句，定义类属性，记录创建对象的总数
    count = 0
    def __init__(self, name):
        self.name = name
        Tool.count = Tool.count + 1


    #类方法
    @classmethod
    def show_tool_count(cls):
        print(cls.count)


    #静态方法
    @staticmethod
    def help():
        print('help')




if __name__ == '__main__':
    tool1 = Tool('tool1')
    tool2 = Tool('tool2')
    tool3 = Tool('tool3')
    print(tool1.count)

    Tool.show_tool_count()
    Tool.help()